<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                >
    <style>
        .column {
            width: 410px;
            vertical-align: top;
        }
        .rowc{
            text-align: right
        }
        .center{
            text-align:center;
            align:center;
        }
    </style>

    <h:form id="form">
        <rich:panel header="公告" styleClass="content-hight">
            <h:panelGroup styleClass="center" layout="block"><font face="宋体" size="3" color="0" style="font-weight:bolder ">
                    <h:outputText value="#{announce.announce.title}"/><br/>
                </font>
            </h:panelGroup><br/>
            <h:panelGroup styleClass="center" layout="block"><font face="宋体" size="2" color="0" style="font-weight:bolder ">
                    <h:outputText value="#{announce.announce.author} "/>
                    <h:outputText value="#{announce.announce.createdate}">
                        <f:convertDateTime pattern="yyyy/MM/dd"/>
                    </h:outputText>
                    <br/>
                </font>
            </h:panelGroup>
            <hr/>


            <h:panelGroup layout="block"><font face="宋体" size="2" color="0" style="font-weight:bolder ">
                    <h:outputText value="重要性：" /> </font>
                <h:outputText value="重要" style="color: red " rendered="#{announce.announce.importance==1}"/>
                <h:outputText value="一般" rendered="#{announce.announce.importance!=1}"/>
                <br/>
            </h:panelGroup>
            <h:panelGroup layout="block"><font face="宋体" size="2" color="0" style="font-weight:bolder ">
                    <h:outputText value="摘要： "/> </font>
                <h:outputText value="#{announce.announce.outline}"/><br/>
            </h:panelGroup>

            <h:panelGroup layout="block"><font face="宋体" size="2" color="0" style="font-weight:bolder ">
                    <h:outputText value="附件： "/> </font>
                <h:commandLink  rendered="#{announce.announce.showflag}" action="#{announce.attatch}">
                    <h:outputText value="#{announce.announce.docname}"  rendered="#{announce.announce.showflag}"/>
                </h:commandLink>
                <h:outputText value="#{announce.announce.docname}[文档已不存在]" rendered="#{!(announce.announce.showflag || announce.announce.docname==null)}"/>
            </h:panelGroup>
            <hr/>
            <h:outputFormat value="#{announce.announce.content}" escape="false"/>
            <br/>
            <h:commandButton value="返回" action="#{announce.readback}"></h:commandButton>
        </rich:panel>
    </h:form>
</ui:composition>
